﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "CompareValidator控件应用示例";
        txtUsername.Focus();		//页面加载时，用户名文本框得到焦点
        lblPass.Text = "";			//清除通过验证标签中的文本

    }
    protected void btnOK_Click(object sender, EventArgs e)
    {
        lblPass.Text = "本页已通过验证！";		//通过验证后在标签中显示的信息
    }
}
